Buildfile: /home/marc/Entwicklung/workspace/Project/build.xml
-check-env:
 [checkenv] Android SDK Tools Revision 21.0.1
 [checkenv] Installed at /home/marc/Entwicklung/sdk/android-sdk-linux_x86
-setup:
     [echo] Project Name: Project
  [gettype] Project Type: Application
-pre-clean:
clean:
   [delete] Deleting directory /home/marc/Entwicklung/workspace/Project/bin
   [delete] Deleting directory /home/marc/Entwicklung/workspace/Project/gen
[getlibpath] Library dependencies:
[getlibpath] ------------------
[getlibpath] Ordered libraries:
nodeps:
-check-env:
 [checkenv] Android SDK Tools Revision 21.0.1
 [checkenv] Installed at /home/marc/Entwicklung/sdk/android-sdk-linux_x86
-setup:
     [echo] Project Name: MainActivity
  [gettype] Project Type: Android Library
-pre-clean:
clean:
   [delete] Deleting directory /home/marc/Entwicklung/workspace/LibA/bin
   [delete] Deleting directory /home/marc/Entwicklung/workspace/LibA/gen
nodeps:
-check-env:
 [checkenv] Android SDK Tools Revision 21.0.1
 [checkenv] Installed at /home/marc/Entwicklung/sdk/android-sdk-linux_x86
-setup:
     [echo] Project Name: LibB
  [gettype] Project Type: Android Library
-pre-clean:
clean:
   [delete] Deleting directory /home/marc/Entwicklung/workspace/LibB/bin
   [delete] Deleting directory /home/marc/Entwicklung/workspace/LibB/gen
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}
-check-env:
 [checkenv] Android SDK Tools Revision 21.0.1
 [checkenv] Installed at /home/marc/Entwicklung/sdk/android-sdk-linux_x86
-setup:
     [echo] Project Name: Project
  [gettype] Project Type: Application
-build-setup:
     [echo] Resolving Build Target for Project...
[gettarget] Project Target:   Android 4.1.2
[gettarget] API level:        16
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/Project/bin
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/Project/bin/res
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/Project/gen
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/Project/bin/classes
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/Project/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for Project...
[dependency] Ordered libraries:
[dependency] /home/marc/Entwicklung/workspace/LibB
[dependency] /home/marc/Entwicklung/workspace/LibA
     [echo] ----------
     [echo] Building Libraries with 'release'...
nodeps:
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}
-check-env:
 [checkenv] Android SDK Tools Revision 21.0.1
 [checkenv] Installed at /home/marc/Entwicklung/sdk/android-sdk-linux_x86
-setup:
     [echo] Project Name: MainActivity
  [gettype] Project Type: Android Library
-build-setup:
     [echo] Resolving Build Target for MainActivity...
[gettarget] Project Target:   Android 4.1.2
[gettarget] API level:        16
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibA/bin
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibA/bin/res
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibA/gen
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibA/bin/classes
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibA/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for MainActivity...
[dependency] Library dependencies:
[dependency] No Libraries
-pre-build:
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
    [javac] Compiling 4 source files to /home/marc/Entwicklung/workspace/LibA/bin/classes
     [echo] Creating library output jar file...
      [jar] Building jar: /home/marc/Entwicklung/workspace/LibA/bin/classes.jar
-post-compile:
-obfuscate:
-dex:
     [echo] Library project: do not convert bytecode...
-crunch:
   [crunch] Crunching PNG Files in source dir: /home/marc/Entwicklung/workspace/LibA/res
   [crunch] To destination dir: /home/marc/Entwicklung/workspace/LibA/bin/res
   [crunch] Processing image to cache: /home/marc/Entwicklung/workspace/LibA/res/drawable-hdpi/ic_launcher.png => /home/marc/Entwicklung/workspace/LibA/bin/res/drawable-hdpi/ic_launcher.png
   [crunch]   (processed image to cache entry /home/marc/Entwicklung/workspace/LibA/bin/res/drawable-hdpi/ic_launcher.png: 87% size of source)
   [crunch] Processing image to cache: /home/marc/Entwicklung/workspace/LibA/res/drawable-mdpi/ic_launcher.png => /home/marc/Entwicklung/workspace/LibA/bin/res/drawable-mdpi/ic_launcher.png
   [crunch]   (processed image to cache entry /home/marc/Entwicklung/workspace/LibA/bin/res/drawable-mdpi/ic_launcher.png: 78% size of source)
   [crunch] Processing image to cache: /home/marc/Entwicklung/workspace/LibA/res/drawable-xhdpi/ic_launcher.png => /home/marc/Entwicklung/workspace/LibA/bin/res/drawable-xhdpi/ic_launcher.png
   [crunch]   (processed image to cache entry /home/marc/Entwicklung/workspace/LibA/bin/res/drawable-xhdpi/ic_launcher.png: 85% size of source)
   [crunch] Crunched 3 PNG files to update cache
-package-resources:
     [echo] Library project: do not package resources...
-package:
     [echo] Library project: do not package apk...
-post-package:
-release-prompt-for-password:
-release-nosign:
[propertyfile] Creating new property file: /home/marc/Entwicklung/workspace/LibA/bin/build.prop
[propertyfile] Updating property file: /home/marc/Entwicklung/workspace/LibA/bin/build.prop
[propertyfile] Updating property file: /home/marc/Entwicklung/workspace/LibA/bin/build.prop
[propertyfile] Updating property file: /home/marc/Entwicklung/workspace/LibA/bin/build.prop
-release-sign:
-post-build:
release:
nodeps:
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}
-check-env:
 [checkenv] Android SDK Tools Revision 21.0.1
 [checkenv] Installed at /home/marc/Entwicklung/sdk/android-sdk-linux_x86
-setup:
     [echo] Project Name: LibB
  [gettype] Project Type: Android Library
-build-setup:
     [echo] Resolving Build Target for LibB...
[gettarget] Project Target:   Android 4.1.2
[gettarget] API level:        16
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibB/bin
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibB/bin/res
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibB/gen
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibB/bin/classes
    [mkdir] Created dir: /home/marc/Entwicklung/workspace/LibB/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for LibB...
[dependency] Library dependencies:
[dependency] ------------------
[dependency] Ordered libraries:
-pre-build:
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
    [javac] Compiling 2 source files to /home/marc/Entwicklung/workspace/LibB/bin/classes
     [echo] Creating library output jar file...
      [jar] Building MANIFEST-only jar: /home/marc/Entwicklung/workspace/LibB/bin/classes.jar
-post-compile:
-obfuscate:
-dex:
     [echo] Library project: do not convert bytecode...
-crunch:
   [crunch] Crunching PNG Files in source dir: /home/marc/Entwicklung/workspace/LibB/res
   [crunch] To destination dir: /home/marc/Entwicklung/workspace/LibB/bin/res
   [crunch] Crunched 0 PNG files to update cache
-package-resources:
     [echo] Library project: do not package resources...
-package:
     [echo] Library project: do not package apk...
-post-package:
-release-prompt-for-password:
-release-nosign:
[propertyfile] Creating new property file: /home/marc/Entwicklung/workspace/LibB/bin/build.prop
[propertyfile] Updating property file: /home/marc/Entwicklung/workspace/LibB/bin/build.prop
[propertyfile] Updating property file: /home/marc/Entwicklung/workspace/LibB/bin/build.prop
[propertyfile] Updating property file: /home/marc/Entwicklung/workspace/LibB/bin/build.prop
-release-sign:
-post-build:
release:
-pre-build:
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Merging manifests from project and 2 libraries.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
    [javac] Compiling 3 source files to /home/marc/Entwicklung/workspace/Project/bin/classes
-post-compile:
-obfuscate:
-dex:
      [dex] input: /home/marc/Entwicklung/workspace/Project/bin/classes
      [dex] input: /home/marc/Entwicklung/workspace/LibB/bin/classes.jar
      [dex] input: /home/marc/Entwicklung/workspace/LibA/bin/classes.jar
      [dex] input: /home/marc/Entwicklung/workspace/LibA/libs/android-support-v4.jar
      [dex] Pre-Dexing /home/marc/Entwicklung/workspace/LibB/bin/classes.jar -> classes-976dabcf7b25ba479922730a3b7da9dc.jar
      [dex] Pre-Dexing /home/marc/Entwicklung/workspace/LibA/bin/classes.jar -> classes-82fd8aea98ae4b4f6dec26ff75ef9013.jar
      [dex] Pre-Dexing /home/marc/Entwicklung/workspace/LibA/libs/android-support-v4.jar -> android-support-v4-7a8456099fa24b4eef7dc8f23d6ea58d.jar
      [dex] Converting compiled files and external libraries into /home/marc/Entwicklung/workspace/Project/bin/classes.dex...
       [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
       [dx] com.android.dx.util.DexException: Multiple dex files define Lcom/example/adttest/Manifest$permission;
       [dx] 	at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:580)
       [dx] 	at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:538)
       [dx] 	at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:519)
       [dx] 	at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:168)
       [dx] 	at com.android.dx.merge.DexMerger.merge(DexMerger.java:186)
       [dx] 	at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300)
       [dx] 	at com.android.dx.command.dexer.Main.run(Main.java:232)
       [dx] 	at com.android.dx.command.dexer.Main.main(Main.java:174)
       [dx] 	at com.android.dx.command.Main.main(Main.java:91)

BUILD FAILED
/home/marc/Entwicklung/sdk/android-sdk-linux_x86/tools/ant/build.xml:881: The following error occurred while executing this line:
/home/marc/Entwicklung/sdk/android-sdk-linux_x86/tools/ant/build.xml:883: The following error occurred while executing this line:
/home/marc/Entwicklung/sdk/android-sdk-linux_x86/tools/ant/build.xml:895: The following error occurred while executing this line:
/home/marc/Entwicklung/sdk/android-sdk-linux_x86/tools/ant/build.xml:290: null returned: 2

Total time: 14 seconds

